import request from '@/utils/request'

// 查询进销存月度统计列表
export function listInventory(query) {
  return request({
    url: '/report/inventory/list',
    method: 'post',
    data: query
  })
}

export function listForReport(query) {
  return request({
    url: '/report/inventory/listForReport',
    method: 'post',
    data: query
  })
}

// 查询进销存月度统计详细
export function getInventory(id) {
  return request({
    url: '/report/inventory/' + id,
    method: 'get'
  })
}

// 新增进销存月度统计
export function addInventory(data) {
  return request({
    url: '/report/inventory/add',
    method: 'post',
    data: data
  })
}

// 修改进销存月度统计
export function updateInventory(data) {
  return request({
    url: '/report/inventory/update',
    method: 'post',
    data: data
  })
}

// 删除进销存月度统计
export function delInventory(id) {
  return request({
    url: '/report/inventory/delete/' + id,
    method: 'post'
  })
}
